﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GenY;
using GenY.Internal;
using System.Text.RegularExpressions;

namespace Geny.ShaderEffect {
  [GenYrator( "geny.fx" )]
  public class ShaderEffectGenyrator : IGenYrator {
    public GenyResult GenYrate( string filename, string file, string language, string[ ] references ) {

      Regex constant = new Regex( "float4 colorFilter : register(C0);" );
      var rows = file.Split( '\n' );



      var constants = from r in rows
                      where constant.IsMatch( r )
                      let name = r.Split(' ').Where(sub => sub != "").Skip(1).First()
                      let number = r.Split()
                      select new { };

      return null;
    }
  }
}
